import request from "@/utils/loginRequest";
import type {userModel} from "@/store/login";
export const reqLogin = (data:userModel) => {
    return request.post(`/user/passport/login`, data);
}

// 获取用户信息
// /api/user/passport/auth/getUserInfo
export const reqUserInfo = () => {
    return request.get(`/user/passport/auth/getUserInfo`)
}

// 退出登录
// /api/user/passport/logout
export const reqLogout = () => {
    return request.get(`/user/passport/logout`)
}
